#define DHT11_PIN A0
#define DHT21_PIN A1

#define DSM501A_PIN A0

#define PHOTOCELL_PIN A0

#define RELAY_BUTTON_PIN A0
#define RELAY_PIN A0

#define BMP085
#define LCD

void setup() {
	Serial.begin(9600);
	Serial.println("Begin!");

#ifdef LCD
	initLCD();
	displayLCD("Hello, world!");
#endif
}

void loop() {

#ifdef DHT11_PIN
	Serial.println(getDHT11Hum());
	Serial.println(getDHT11Temp());
#endif

#ifdef DHT21_PIN
	float hum = getDHT21Hum();
	float temp = getDHT21Temp();
	Serial.println(getDHT21Hum());
	Serial.println(getDHT21Temp());
#endif

#ifdef PHOTOCELL_PIN
	Serial.println(getLight());
	Serial.println(getIlluminance());
#endif

#ifdef RELAY_PIN
#endif

	char buf[10];
	postRequest("1", "DHT21", "temperature", dtostrf(temp,1,2,buf));
	postRequest("1", "DHT21", "humidity", dtostrf(hum,1,2,buf));
	delay(1000);
}
